/* gtktransition.h
 *
 * Copyright (C) 2007 Andre Moreira Magalhaes <andrunko@gmail.com>
 * Copyright (C) 2007 Renato Araujo Oliveira Filho <renatox@gmail.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */

#ifndef __GTK_TRANSITION_H__
#define __GTK_TRANSITION_H__

#include <gtk/gtktimeline.h>
#include <gtk/gtktransitionstate.h>

G_BEGIN_DECLS

#define GTK_TYPE_TRANSITION            (gtk_transition_get_type ())
#define GTK_TRANSITION(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TRANSITION, GtkTransition))
#define GTK_TRANSITION_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TRANSITION, GtkTransitionClass))
#define GTK_IS_TRANSITION(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TRANSITION))
#define GTK_IS_TRANSITION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TRANSITION))
#define GTK_TRANSITION_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TRANSITION, GtkTransitionClass))

typedef struct _GtkTransition      GtkTransition;
typedef struct _GtkTransitionClass GtkTransitionClass;

struct _GtkTransitionClass
{
  GtkTimelineClass parent_class;
};

struct _GtkTransition
{
  GtkTimeline parent;
};

GType                  gtk_transition_get_type     (void) G_GNUC_CONST;

GtkTransition         *gtk_transition_new          (guint               duration);

GSList                *gtk_transition_get_states             (GtkTransition      *transition);
GtkTransitionState    *gtk_transition_get_state              (GtkTransition      *transition,
                                                              GObject            *object,
                                                              GtkTransitionState *parent_state,
                                                              gdouble             progress);
GtkTransitionState    *gtk_transition_get_state_parent_state (GtkTransition      *transition,
                                                              GtkTransitionState *state);
gdouble                gtk_transition_get_state_progress     (GtkTransition      *transition,
                                                              GtkTransitionState *state);
gboolean               gtk_transition_has_state              (GtkTransition      *transition,
                                                              GtkTransitionState *state);
void                   gtk_transition_add_state              (GtkTransition      *transition,
                                                              GtkTransitionState *state,
                                                              GtkTransitionState *parent_state,
                                                              gdouble             progress);
void                   gtk_transition_remove_state           (GtkTransition      *transition,
                                                              GtkTransitionState *transition_state);

G_END_DECLS

#endif
